<template>
  <div class="bg flex flex-end pr70 border-box align-center">
    <div class="bg-white p20 br10 shadow-dark">
      <kdform :config="config" :model="model" />
    </div>
  </div>
</template>

<script setup>
import config from "./config.js";
import model from "./model.js";
import router from "../../router/router";
let userinfo = JSON.parse(localStorage.getItem("userinfo") || "{}");
if (userinfo.time) {
  if (Date.now() - userinfo.time > 1000 * 5) {
    localStorage.removeItem("userinfo");
  } else {
    router.push("/index");
  }
}
</script>

<style scoped lang="scss">
.bg {
  @include square(100%);
  background: url(@/assets/imgs/bg-login.jpg) no-repeat center / cover;
}
:deep(.el-input__suffix) {
  position: absolute;
  right: 8px;
}
</style>
